<!DOCTYPE html>
<!-- saved from url=(0052)  -->
<html lang="en"  xmlns:th="http://www.thymeleaf.org">

	<head>
		<meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
		<meta content="width=device-width, initial-scale=1, shrink-to-fit=no" name="viewport">
		<meta content="" name="description">
		<meta content="" name="author">

		<title>添加部门</title>
		<!-- Bootstrap core CSS -->
		<link rel="stylesheet" th:href="@{/css/bootstrap.min.css}">
		<!-- Custom styles for this template -->
		<link rel="stylesheet" th:href="@{/css/dashboard.css}">
		<style type="text/css">
			/* Chart.js */
			
			@-webkit-keyframes chartjs-render-animation {
				from {
					opacity: 0.99
				}
				to {
					opacity: 1
				}
			}
			
			@keyframes chartjs-render-animation {
				from {
					opacity: 0.99
				}
				to {
					opacity: 1
				}
			}
			
			.chartjs-render-monitor {
				-webkit-animation: chartjs-render-animation 0.001s;
				animation: chartjs-render-animation 0.001s;
			}
		</style>
	</head>

	<body>
		<div th:replace="~{common/common::topbar}"></div>

		<div class="container-fluid">
			<div class="row">
				<div th:replace="~{common/common::siderbar(active='deplist')}"></div>
				<main class="col-md-9 ml-sm-auto col-lg-10 pt-3 px-4" role="main">
					<h3 class="text-info">添加部门</h3>
					<div class="dropdown-divider">
					</div>
					<form method="post" th:action="@{/dep/add}" >
						<div class="form-group" ><label>部门id</label>
							<input class="form-control" name="departmentId" placeholder="部门id" required type="text">
						</div>
						<div class="form-group" ><label>部门名称</label>
							<input class="form-control" name="departmentName" required type="text">
						</div>
						<button class="btn btn-primary" type="submit">添加</button>
					</form>
				</main>
			</div>
		</div>

		<!-- Bootstrap core JavaScript
    ================================================== -->
		<!-- Placed at the end of the document so the pages load faster -->
		<script th:src="@{/js/jquery-3.2.1.slim.min.js}" type="text/javascript"></script>
		<script th:src="@{/js/popper.min.js}" type="text/javascript"></script>
		<script th:src="@{/js/bootstrap.min.js}" type="text/javascript"></script>

		<!-- Icons -->
		<script th:src="@{/js/feather.min.js}" type="text/javascript"></script>
		<script>
			feather.replace()
		</script>

		<!-- Graphs -->
		<script th:src="@{/js/Chart.min.js}" type="text/javascript"></script>
		<script>
			var ctx = document.getElementById("myChart");
			var myChart = new Chart(ctx, {
				type: 'line',
				data: {
					labels: ["Sunday", "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday"],
					datasets: [{
						data: [15339, 21345, 18483, 24003, 23489, 24092, 12034],
						lineTension: 0,
						backgroundColor: 'transparent',
						borderColor: '#007bff',
						borderWidth: 4,
						pointBackgroundColor: '#007bff'
					}]
				},
				options: {
					scales: {
						yAxes: [{
							ticks: {
								beginAtZero: false
							}
						}]
					},
					legend: {
						display: false,
					}
				}
			});
		</script>

	</body>

</html>